// src/api/coupon.js
import axios from "axios"

const API_URL = "http://localhost:8080/app/coupon"

// 获取可领取的平台优惠券
export const getCouponsByStatus = (userId, status) => {
  console.log("👉 请求平台优惠券:", `${API_URL}/userId/${userId}/status/${status}`);
  return axios.get(`${API_URL}/userId/${userId}/status/${status}`);
};
